package cntv.player.media.widget;

/**
 *  代替 android.widget.MediaController.MediaPlayerControl  以便修改
 *  播放控制相关方法，供界面控制器调用
 * @author zengliang
 *
 */
public interface CntvPlayerControl {
	void    start();
    void    pause();
    long     getDuration();
    long     getCurrentPosition();
    void    seekTo(long newPosition); 
    boolean isPlaying();
    int     getBufferPercentage();
    boolean canPause();
    boolean canSeekBackward();
    boolean canSeekForward();
    boolean isAdPlaying();

    /**
     * Get the audio session id for the player used by this VideoView. This can be used to
     * apply audio effects to the audio track of a video.
     * @return The audio session, or 0 if there was an error.
     */
    int     getAudioSessionId();
}
